package com.hikari;

import java.awt.*;

//5.游戏开始是时背景图片的添加
public class Bg {
    //5-1 编写绘制图片的方法
    public void paintSelf(Graphics g,int fishLevel){
        //5-2 在绘制背景图片中定义所需参数
        g.drawImage(GameUtils.bgImg,0,0,null);
        switch (GameWin.state){
            case 0:
                GameUtils.draw(g, "开始", Color.pink,500, 350, 50);
                break;
            case 1:
                GameUtils.draw(g, "积分"+GameUtils.count,Color.orange, 50, 100, 50);
                GameUtils.draw(g, "难度"+GameUtils.level, Color.orange,250, 100, 50);
                GameUtils.draw(g, "等级"+fishLevel, Color.orange,800, 100, 50);
                break;
            case 2:
                GameUtils.draw(g, "GAME OVER!", Color.red,500, 350, 60);
                break;
            case 3:
                GameUtils.draw(g, "积分"+GameUtils.count, Color.orange,50, 100, 50);
                GameUtils.draw(g, "难度"+GameUtils.level, Color.orange,250, 100, 50);
                GameUtils.draw(g, "等级"+fishLevel, Color.orange,800, 100, 50);
                GameUtils.draw(g, "胜利", Color.red,500, 350, 60);
                break;
            case 4:
                break;
            default:break;
        }
    }

}
